New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wendellhu/redi

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wendellhu/redi

A dependency library for TypeScript and JavaScript, along with a binding for React.

  • 0.12.13
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-99.94%
Maintainers
1
Weekly downloads
 
Created
Source

redi

Stars Downloads License Codecov

A dependency library for TypeScript and JavaScript, along with a binding for React.

Overview

import { Inject } from '@wendellhu/redi'

class AuthService {
    public getCurrentUserInfo(): UserInfo {}
}

class FileListService {
    constructor(@Inject(AuthService) private readonly authService: AuthService) {}

    public getUserFiles(): Promise<Files> {
        const currentUser = this.authService.getCurrentUserInfo()
    }
}

const injector = new Injector([[AuthService], [FileListService]])

injector.get(AuthService)

View full documentation on redi.wendell.fun.

Users

License

MIT. Copyright 2021-present Wenzhao Hu.

FAQs

Package last updated on 27 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc